


module.exports = function (server_arr) {
    // print("sssssss")

    for (key in this.__config__.need_server) {
        print(key)
        if (this.__config__.need_server[key] == 0) continue;
        switch (key) {
            case "autoServer":
                if (auto.service == null) {
                    let str = "请打开【" + this.__config__.app_name + "】无障碍服务！"
                    toastLog(str);
                    auto.waitFor()
                    
                }
                toastLog("【无障碍服务】已打开！");
                break;
            case "floatyServer":
                if (!floaty.checkPermission()) {
                    floaty.requestPermission()
                    while(!floaty.checkPermission());
                    toastLog("【悬浮窗权限】已打开");
                } else {
                    print("已获取悬浮窗权限！")
                }
                break;
        }
    }
    /*
    server_arr.forEach((key, index) => {
        print("key -->> %s", key)

    })

    */
}